function [gaugeName] = tidegauge_id2name(tg_id)
% [gaugeName] = tidegauge_id2name(tg_id)
%
% Given the station ID of a tide gauge location, outputs the station name
% corresponding to that site.  Currently set up for the US west coast
% (excluding Alaska) and sites within the Salish Sea.
%
%
% INPUT:
%     tg_id     - a string containing the site ID.  E.g., '7277' for the 
%                 Patricia Bay, BC, site, or '9443090' for Neah Bay, WA
%
% OUTPUT:
%     gaugeName - a string containing the name of a US or Canada tide gauge
%                 site, such as 'Patricia Bay' for the Patricia Bay, BC
%                 site, or 'Seattle', or 'Neah Bay', etc.  Station names do
%                 include spaces.
%
%
% R. McCabe 05/2014


switch tg_id
    case '8074'
        gaugeName = 'Campbell River';
    case '7795'
        gaugeName = 'Point Atkinson';
    case '7735'
        gaugeName = 'Vancouver';
    case '7654'
        gaugeName = 'New Westminster';
    case '7277'
        gaugeName = 'Patricia Bay';
    case '7120'
        gaugeName = 'Victoria';
    case '8615'
        gaugeName = 'Tofino';
    case '8545'
        gaugeName = 'Bamfield';
    case '9449424'
        gaugeName = 'Cherry Point';
    case '9449880'
        gaugeName = 'Friday Harbor';
    case '9446484'
        gaugeName = 'Tacoma';
    case '9447130'
        gaugeName = 'Seattle';
    case '9444900'
        gaugeName = 'Port Townsend';
    case '9444090'
        gaugeName = 'Port Angeles';
    case '9443090'
        gaugeName = 'Neah Bay';
    case '9442396'
        gaugeName = 'La Push';
    case '9441102'
        gaugeName = 'Westport';
    case '9440910'
        gaugeName = 'Toke Point';
    case '9439040'
        gaugeName = 'Astoria';
    case '9437540'
        gaugeName = 'Garibaldi';
    case '9435380'
        gaugeName = 'South Beach';
    case '9432780'
        gaugeName = 'Charleston';
    case '9431647'
        gaugeName = 'Port Orford';
    case '9419750'
        gaugeName = 'Crescent City';
    case '9418767'
        gaugeName = 'North Spit';
    case '9416841'
        gaugeName = 'Arena Cove';
    case '9415020'
        gaugeName = 'Point Reyes';
    case '9414290'
        gaugeName = 'San Francisco';
    case '9413450'
        gaugeName = 'Monterey Bay';
    case '9412110'
        gaugeName = 'Port San Luis';
    case '9411340'
        gaugeName = 'Santa Barbara';
    case '9410840'
        gaugeName = 'Santa Monica';
    case '9410660'
        gaugeName = 'Los Angeles';
    case '9410230'
        gaugeName = 'La Jolla';
    case '9410170'
        gaugeName = 'San Diego';
    otherwise
        disp(' ');
        disp('tidegauge_id2name.m:  station not found...')
        gaugeName = [];
end

